package Be_greedy_for_snakes;

import java.util.LinkedList;
import java.util.Random;

public class Obstacle extends Node{
    private LinkedList<Node> obstacle;

    public Obstacle(){
        super();
    }

    public Obstacle(int x,int y){
        super(x,y);
    }

    public void random() {
        obstacle = new LinkedList<>();
        for(int i=0;i<8;i++){
            Random r = new Random();
            obstacle.add(new Node(r.nextInt(50),r.nextInt(35)));
        }
    }

    public LinkedList<Node> getObstacle() {
        return obstacle;
    }

    public void setObstacle(LinkedList<Node> obstacle) {
        this.obstacle = obstacle;
    }
}
